package com.far.permissions.enums;

public enum Symbol {
    EQ(" #column + ' = ' + #parseParam(#param) "),
    NEQ(" #column + ' != ' + #parseParam(#param) "),
    GT(" #column + ' > ' + #parseParam(#param) "),
    GTE(" #column + ' >= ' + #parseParam(#param) "),
    LT(" #column + ' < ' + #parseParam(#param) "),
    LTE(" #column + ' <= ' + #parseParam(#param) "),
    IN(" #column + ' IN ( ' + #parseParam(#param) + ' )' "),
    NIN(" #column + ' NOT IN ( ' + #parseParam(#param) + ' )' "),
    AND(" AND "),
    OR(" OR "),
    ;

    private String expression;

    Symbol(String value) {
        this.expression = value;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }
}
